<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Get transliterator IDs</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="transliterator.geterrormessage.html">« Transliterator::getErrorMessage</a></li>
      <li style="float: right;"><a href="transliterator.transliterate.html">Transliterator::transliterate »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.transliterator.html">Transliterator</a></li>
    <li>Get transliterator IDs</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="transliterator.listids" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Transliterator::listIDs</h1>
  <h1 class="refname">transliterator_list_ids</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.4.0, PHP 7, PHP 8, PECL intl &gt;= 2.0.0)</p><p class="refpurpose"><span class="refname">Transliterator::listIDs</span> -- <span class="refname">transliterator_list_ids</span> &mdash; <span class="dc-title">Get transliterator IDs</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-transliterator.listids-description">
  <h3 class="title">说明</h3>
  <p class="para">面向对象风格</p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>Transliterator::listIDs</strong></span>(): <span class="type"><span class="type">array</span>|<span class="type"><span class="type false">false</span></span></span></div>

  <p class="para rdfs-comment">过程化风格</p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>transliterator_list_ids</strong></span>(): <span class="type"><span class="type">array</span>|<span class="type"><span class="type false">false</span></span></span></div>

  <p class="para rdfs-comment">
   Returns an array with the registered transliterator IDs.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-transliterator.listids-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-transliterator.listids-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   An <span class="type">array</span> of registered transliterator IDs on success,
    或者在失败时返回 <strong><code>false</code></strong>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-transliterator.listids-examples">
  <h3 class="title">范例</h3>
  <div class="example" id="transliterator.listids.example.basic">
   <p><strong>示例 #1 Retrieving the registered transliterator IDs</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">Transliterator</span><span style="color: #007700">::</span><span style="color: #0000BB">listIDs</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

   <div class="example-contents"><p>以上例程的输出类似于：</p></div>
   <div class="example-contents screen">
<div class="cdata"><pre>
Array
(
    [0] =&gt; ASCII-Latin
    [1] =&gt; Accents-Any
    [2] =&gt; Amharic-Latin/BGN
    [3] =&gt; Any-Accents
    [4] =&gt; Any-Publishing
...
    [650] =&gt; Any-ps_Latn/BGN
    [651] =&gt; Any-tk/BGN
    [652] =&gt; Any-ch_FONIPA
    [653] =&gt; Any-cs_FONIPA
    [654] =&gt; Any-cy_FONIPA
)
</pre></div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-transliterator.listids-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="transliterator.geterrormessage.html" class="methodname" rel="rdfs-seeAlso">Transliterator::getErrorMessage()</a> - Get last error message</span></li>
    <li class="member"><span class="methodname"><a href="transliterator.transliterate.html" class="methodname" rel="rdfs-seeAlso">Transliterator::transliterate()</a> - Transliterate a string</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>